package com.ahp.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	public static final String USER_SESSION = "user"; 
	public static final String MANAGER_SESSION = "manager"; 

	public static final String USER_TYPE = "user";
	public static final String MANAGER_TYPE = "manager";
	
	public static final String SEX_MALE = "male";
	public static final String SES_FEMALE = "female";
	// Fields

	private Integer id;
	private String loginName;
	private String password;
	private String trueName;
	private String sex;
	private String company;
	private String headship;
	private String phone;
	private String email;
	private String type;
	private Set modules = new HashSet(0);
	private Set tasts = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String loginName, String password, String trueName, String sex,
			String company, String headship, String phone, String email,
			Set modules, Set tasts) {
		this.loginName = loginName;
		this.password = password;
		this.trueName = trueName;
		this.sex = sex;
		this.company = company;
		this.headship = headship;
		this.phone = phone;
		this.email = email;
		this.modules = modules;
		this.tasts = tasts;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getHeadship() {
		return this.headship;
	}

	public void setHeadship(String headship) {
		this.headship = headship;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set getModules() {
		return this.modules;
	}

	public void setModules(Set modules) {
		this.modules = modules;
	}

	public Set getTasts() {
		return this.tasts;
	}

	public void setTasts(Set tasts) {
		this.tasts = tasts;
	}

}